﻿@model IEnumerable<Models.SysModels.SysDepartment>
<div class="row-fluid">
    <blockquote>
        <h3>任务总结</h3>
    </blockquote>
    <hr />
</div>
<div class="row-fluid">
    <div class="span3 ">
        <div class="sidenav">
            <blockquote>
                @foreach (var item in Model)
                {
                    <div style="margin: 0 0 5px 0;  padding-left:@((item.SystemId.Length - 3) * 5)px;" >
                        <strong>@Html.DisplayFor(a => item.Ico)&nbsp;@Ajax.ActionLink(item.DepartmentName, "Details", new { DepartmentId = item.SystemId }, new AjaxOptions { UpdateTargetId = "Details" }) </strong>
                        <a href="javascript:;" data-trigger="collapse" data-parent=".sidenav"><i class="fa fa-angle-down"></i></a>

                        <div class="collapsible hide" style="padding-left: 15px;">
                            @foreach (var item1 in item.SysDepartmentSysUsers.Where(a => !a.SysUser.Deleted && a.SysUser.Enabled))
                            {
                                <span style="white-space: nowrap;"><i class="fa fa-user"></i>&nbsp;@Ajax.ActionLink(item1.SysUser.DisplayName + item1.SysUser.UserName, "Details", new { userId = item1.SysUserId }, new AjaxOptions { UpdateTargetId = "Details" })&nbsp;</span>  
                            }
                        </div>
                    </div>
                }
            </blockquote>
        </div>
    </div>
    <div class="span9" id="Details">
        @Html.Action("Details")
    </div>
</div>
